package com.dxyxx.dialog;

import com.dxyxx.R;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;

public class WaittingCircle {
	private static ProgressDialog progressDialog;

	public static ProgressDialog showDialog(Context context,boolean bool) {
		if (progressDialog == null) {
			progressDialog = ProgressDialog.show(context, null, null,bool);
			progressDialog.setContentView(R.layout.dialog_circle);
			return progressDialog;
		}
		return progressDialog;
	}

	public static void show() {
		if (progressDialog != null) {
			progressDialog.show();
		}
	}

	public static void dismiss() {
		if (progressDialog != null) {
			progressDialog.dismiss();
		}
	}
}
